package com.android1.amarena2d.test;

import com.android1.amarena2d.nodes.FpsLabel;
import com.android1.amarena2d.nodes.Scene;
import com.android1.amarena2d.nodes.sprites.BatchedSprite;
import com.android1.amarena2d.nodes.sprites.SpriteBatchNode;
import com.android1.amarena2d.texture.Textures;

public class SpriteBatchExampleScene extends Scene {


    BatchedSprite entity;

    public SpriteBatchExampleScene() {



        SpriteBatchNode node = new SpriteBatchNode(Textures.$("assets/logo.jpg").get());
        add(node);

//        SpriteBatchEntity e = node.createSpriteBatchEntity();
//        e.setXY(50, 100);
//        e.transform().setScale(0.3F);
//        e.setAlpha(0.5F);

        entity =  new BatchedSprite(0, 10);
//        entity.setScaleXY(0.5F);

        add(entity);


        entity = new BatchedSprite(200, 200);
//        entity.setSize(100, 100);
        add(entity);

        add(new FpsLabel(10, 20));

    }

}
